//测试动态链接库
public class HelloWorld {
	public native void showHelloWorld();

	static {
		System.loadLibrary("HelloWorld");//HelloWorld.dll
	}

	public static void main(String[] args) {
		HelloWorld test = new HelloWorld();
		test.showHelloWorld();
	}
}

//javac HelloWorld.java
//javah -jni HelloWorld
